package com.yxw.service.impl;

import com.yxw.mapper.BookMapper;
import com.yxw.pojo.Book;
import com.yxw.service.BookService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


@Service
public class BookServiceImpl implements BookService {

    @Resource
    private BookMapper bookMapper;

    @Override
    public Book getBookById(long id) {
        return bookMapper.getBookByIdMapper(id);
    }
}
